<template>
  <div style="display: none">正在退出...</div>
</template>

<script setup>
import { logout } from '@/api/login'
import { removeToken } from '@/utils/auth'
import { useRouter } from 'vue-router'

const router = useRouter()

logout().finally(() => {
  removeToken()
  router.push('/login')
})
</script>
